package com.kalix.mooc.reply.api.dto;

import com.kalix.framework.core.api.web.model.BaseDTO;

import java.util.ArrayList;
import java.util.List;

/**
 * 功能描述:
 *
 * @Description: 回复DTO
 * @Author: yyp
 * @CreateDate: 2019/5/22$ 16:46$
 * @Version:
 */
public class ReplyTreeDTO extends BaseDTO {
    private Long userId; // 回复用户ID
    private String userName; //回复用户姓名
    private String replyEnclosure;  //回复内容
    private Boolean leaf; //是否是叶子节点
    private Long parentId;  // 父节点
    private String parentName; //父节点姓名
    private long discussId; // 留言id
    private List<ReplyTreeDTO> children = new ArrayList<ReplyTreeDTO>(); //子回复

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getReplyEnclosure() {
        return replyEnclosure;
    }

    public void setReplyEnclosure(String replyEnclosure) {
        this.replyEnclosure = replyEnclosure;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public long getDiscussId() {
        return discussId;
    }

    public void setDiscussId(long discussId) {
        this.discussId = discussId;
    }

    public List<ReplyTreeDTO> getChildren() {
        return children;
    }

    public void setChildren(List<ReplyTreeDTO> children) {
        this.children = children;
    }


}
